﻿
@{
    List < Dtos.StudentDtos > list = ViewBag["Stu"];
}
<from action="Edit" method="post">
    @foreach(var a in list) 
    {
        <div>
            @Html.Hidden("id",a.id)
        </div>
        <div>
           姓名： @Html.TextBox("name",a.name)
        </div>
        <div>
            出生日期：<input type="date" name="birthday" value="@a.birthday"/>
        </div>
        @if (a.gender == "男")
        {
            <div>
                <input type="radio" name="birthday" value="@a.gender" checked/>男
                <input type="radio" name="birthday" value="@a.gender"/>女</div>
        }else
        {
            <div>
                <input type="radio" name="birthday" value="@a.gender" checked/>男
                <input type="radio" name="birthday" value="@a.gender"/>女</div>
        }
        <div>
            电话：<input type="date" name="birthday" value="@a.tel"/>
        </div>
        <div>
            邮箱：<input type="date" name="birthday" value="@a.email"/>
        </div>
        <div>
            QQ：<input type="date" name="birthday" value="@a.qqNumber"/>
        </div>
        <div>
            家庭住址：<input type="date" name="birthday" value="@a.address"/>
        </div>
        <div>
            年纪序号：<input type="date" name="birthday" value="@a.gradesId"/>
        </div>
        <div>
            密码：<input type="date" name="birthday" value="@a.pwd"/>
        </div>
        <div>
            头像：<input type="date" name="birthday" value="@a.photo"/>
        </div>
        <button>
            提交
        </button>
    }